<?php

namespace App\Modules\Admin\Entities\Member;

use App\Models\Model;
use App\Modules\Admin\Entities\Water\WaterDeviceModel;

class UserWaterCardModel extends Model
{
    protected $primaryKey='id';
    protected $table='user_water_card';


    public function apparatuses(){

        return $this->hasOne(WaterDeviceModel::class,'water_id','water_id')->select(['water_id','water_title']);
    }


}
